import request from '@/utils/request'
/**
 *获取计费规则列表
 * @param {*} params
 * @returns
 */
export function getListAPI(params) {
  return request({
    url: '/parking/rule/list',
    params
  })
}
/**
 *删除计费规则
 * @param {*} id
 * @returns
 */
export function getDeleteAPI(id) {
  return request({
    url: `/parking/rule/${id}`,
    method: 'DELETE'
  })
}

/**
 *添加计费规则
 * @param {*} data
 * @returns
 */
export function addLiatAPI(data) {
  return request({
    url: '/parking/rule',
    method: 'post',
    data
  })
}
